// pages/medicine/pages/administrative/administrative.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    UnbankedRegister: [{
        userId: 1,
        userIcon: '/assets/images/head.png',
        name: '小明',
        nmGender: '女',
        age: 30,
        remarkName: '精神病'
      },
      {
        userId: 1,
        userIcon: '/assets/images/head.png',
        name: '小明',
        nmGender: '女',
        age: 30,
        remarkName: '精神病'
      },
      {
        userId: 1,
        userIcon: '/assets/images/head.png',
        name: '小明',
        nmGender: '男',
        age: 30,
        remarkName: '精神病'
      }
    ]
  },
  input: function(t) {
    console.log(t.detail.value), this.setData({
      input: t.detail.value
    });
  },
  grabble: function(t) {
    var a = this;
    console.log(a.data.input), wx.setStorageSync("input", a.data.input), "" != a.data.input ? wx.navigateTo({
      url: "/hyb_yl/backstageFollowUp/pages/casControlSeet/casControlSeet",
      success: function(t) {}
    }) : wx.showToast({
      title: "请输入患者名字",
      icon: "none",
      duration: 1e3
    });
  },
  shu: function(a) {
    wx.navigateTo({
      url: "/hyb_yl/backstageFollowUp/pages/healthRecord/healthRecord"
    });
  },
  Wmovement: function(a) {
    console.log(a.currentTarget.dataset.patientid), wx.setStorageSync("patientid", a.currentTarget.dataset.patientid);
    var e = this,
      o = a.currentTarget.dataset.patientid;
    wx.showActionSheet({
      itemList: ["移动"],
      success: function(n) {
        // console.log(n.tapIndex), 0 == n.tapIndex ? wx.navigateTo({
        //   url: "/hyb_yl/backstageFollowUp/pages/casControlmovement/casControlmovement"
        // }) : 1 == n.tapIndex ? wx.request({
        //   url: t.globalData.dic + "doctor/sign/getUnfinishedOrder",
        //   data: {
        //     token: wx.getStorageSync("log"),
        //     patientId: o
        //   },
        //   success: function (t) {
        //     console.log(t), t.data.data ? wx.showModal({
        //       title: "请先结束未完成咨询！",
        //       showCancel: !1,
        //       confirmColor: "#3b4ca9",
        //       confirmText: "取消",
        //       success: function (t) {
        //         t.confirm || t.cancel;
        //       }
        //     }) : e.setData({
        //       Wshow: !0
        //     });
        //   }
        // }) : 2 == n.tapIndex && (wx.setStorageSync("wznameModifier", a.currentTarget.dataset.name),
        wx.navigateTo({
          url: "/hyb_yl/backstageMethod/pages/referral/referral"
        });
      }
    });
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})